home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
doc
/
signal
/
group6_8.code
< prev
next >
Wrap
Text File
|
1999-09-16
|
543b
|
29 lines
//exec('group6_8.code')
//save and change dess
xinit('group6.ps');
//create filter using ffir
[h w]=wfir('lp',7,[.2,0],'hm',[0.01,-1]);
[tg,fr]=group(100,h);
plot2d(fr',tg',1,'011',' ',[0,2,0.5,4.])
xend()
//demonstrate rational polynomial
xinit('group7.ps');
z=poly(0,'z');
h=z/(z-.5);
[tg,fr]=group(100,h);
plot(fr,tg)
xend()
//demonstrate cascade realization
xinit('group8.ps');
h=[1 1.5 -1 1;2 -2.5 -1.7 0;3 3.5 2 5];
h=h';
h=casc(h,'z');
[tg,fr]=group(100,h);
plot(fr,tg)
xend()